<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>邮件发送</title>
	<link rel="stylesheet" href="../static/css/css.css">
	<script type="text/javascript" src="../static/js/jquery-1.8.2.min.js"></script>
</head>
<body>

	<h1 th:text="${content}"></h1>

	<form action="sendMail" method="post">
		<table>
			<tr>
				<th>发送邮箱地址</th>
				<td>
					<input type="text" name="to" th:value="${to}">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span style="color: red;" th:text="${toMessage}"></span>
				</td>
			</tr>
			<tr>
				<th>标题</th>
				<td>
					<input type="text" name="subject">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span style="color: red;" th:text="${subjectMessage}"></span>
				</td>
			</tr>
			<tr>
				<th>内容</th>
				<td>
					<textarea cols="40" rows="5" name="text"></textarea>
				</td>
			</tr>
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" value="发送邮件">
						<input type="button" th:onclick="history.go(-1);return false" value="取消">
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</body>
<script type="text/javascript">
	$(function() {
		// 标题
		$("#content").html("邮件发送");
	})
</script>
</html>